$.ajax({
    url: "http://chst.vip:1234/api/getcoupon"
}).then(res => {
    console.log(res)
    let html = ""
    res.result.forEach(item => {
        html += `<div class="content">

<a href="${item.couponLink}?couponid=${item.couponId}">
    <img src="${item.couponImg}" alt="">
    <p>${item.couponTitle}</p>
</a>
</div>
`
    })
    content.innerHTML = html;
})